﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UcAsp.Net.Comm;
namespace UcAsp.Net.BLL
{
    public class ArticleTags
    {
        public static string GetTagsUrl(string tag)
        {


            StringBuilder result = new StringBuilder();
            if (!string.IsNullOrEmpty(tag))
            {
                string[] t = tag.Split(' ');
                for (int i = 0; i < t.Length; i++)
                {
                    if (!string.IsNullOrEmpty(t[i]))
                    {
                        result.Append("<a class=\"tags\" href=\"/Tags/" + Pinyin.GetPinyin(t[i]) + "\">" + t[i] + "</a>");
                    }
                }
            }
            return result.ToString();
        }
    }
}
